package com.market.feign;

import bean.ChatMessage;

import com.bysj.agent.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "Agent", configuration = FeignConfig.class)
public interface Agent {
    @PostMapping("/agent/user/chat")
    public String userChat(@RequestBody ChatMessage chatmessage);

    @PostMapping("/agent/test")
    public String test();

    @PostMapping("/login")
    public void login(@RequestParam("userId") String userId);
}
